package launch;

public enum Action {
	MARCHER ("Cursor-default.png"),
	PRENDRE ("Cursor-hand.png"),
	UTILISER_DONNER ("Cursor_use.png"),
	POUSSER_TIRER ("Cursor_pushpull.png"),
	PARLER ("Cursor-speech.png"),
	OUVRIR_FERMER ("Cursor-door.png"),
	REGARDER ("Cursor-magnify.png"),
	SORTIR ("Cursor_exit.png");
	
	private String url;
	
	private Action(String url){
		this.url = url;
	}
	
	public String getCursor(){
		return "ressources/actions-sprite/" + this.url;
	}
	
	public static Action getAction(String act){
		if(act.equals("look")){
			return REGARDER;
		}else if(act.equals("take")){
			return PRENDRE;
		}else if(act.equals("usegive")){
			return UTILISER_DONNER;
		}else if(act.equals("pushpull")){
			return POUSSER_TIRER;
		}else if(act.equals("talk")){
			return PARLER;
		}else if(act.equals("open-close")){
			return OUVRIR_FERMER;
		}else if(act.equals("exit")){
			return SORTIR;
		}else{
			return MARCHER;
		}
	}
}
